package com.zlp.mall.portal.modules.oms.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "添加购物车请求参数")
public class CarAddReq implements Serializable {

    @NotNull(message = "商品ID为空")
    @ApiModelProperty(value = "商品ID", required = true)
    private Long productId;

    @NotNull(message = "商品库skuId为空")
    @ApiModelProperty(value = "商品库skuId", required = true)
    private Long productSkuId;

    @NotNull(message = "商品数量为空!")
    @ApiModelProperty(value = "商品数量", required = true)
    private Integer quantity;
}
